package edu.lingnan.rili.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import edu.lingnan.rili.converter.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈世杰
 * @since 2022-01-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_awarded")
@ApiModel("其他比赛加分实体类")
public class Awarded implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "加分分数", index = 7)
    @NumberFormat("##.00")
    @ApiModelProperty("加分分数")
    private Double score;

    @ExcelProperty(value = "加分类型", index = 8)
    @ApiModelProperty("加分类型")
    private String addtype;

    @ExcelProperty(converter = LocalDateTimeConverter.class, value = "加分时间", index = 9)
    @JsonFormat(pattern = "yyyy-MM-dd")
    // @DateTimeFormat("yyyy-MM-dd")
    @ApiModelProperty("加分时间")
    private LocalDateTime awardedTime;

    @ExcelIgnore
    @ApiModelProperty("是否公示，0未公示，1为公示")
    private String pubblicityType;

    @ExcelIgnore
    @ApiModelProperty("参考时间戳")
    private String uploadingId;

    // @ApiModelProperty("加分上传材料信息")
    // private Uploading uploading;

}
